package com.my.beans;

public class Teacher extends User{
	private String tno;
	private String tname;
	private String sex;
	private String level;
	private String birthday;
	private String worktime;
	private String dno;
	private String phone;
	public Teacher(String uname, String pwd, int uright, String tno, String tname ,String sex, String level, String birthday
			,String worktime,String dno,String phone) {
		super(uname, pwd, uright);
		this.tno = tno;
		this.tname = tname;
		this.sex = sex;
		this.level = level;
		this.birthday=birthday;
		this.worktime=worktime;
		this.dno=dno;
		this.phone=phone;
	}

	@Override
	public String toString() {
		return "Teacher [tno=" + tno +", tname=" + tname + ", sex=" + sex + ", level=" + level +
				", birthday=" + birthday +", worktime=" + worktime + ", dno=" + dno + ", phone=" + phone +"]";
	}

	public String getTno() {
		return tno;
	}

	public void setTno(String tno) {
		this.tno = tno;
	}

	public String getTname() {
		return tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getWorktime() {
		return worktime;
	}

	public void setWorktime(String worktime) {
		this.worktime = worktime;
	}

	public String getdno() {
		return dno;
	}

	public void setDno(String dno) {
		this.dno = dno;
	}
	
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Teacher(){}
}
